using SpiderMaster;

namespace SpiderMaster.AspNet.TradingSystem
{
    public partial class TradingCenterProfileCommon
    {
        /// <summary> Determines whether [is null or empty] [the specified current]. </summary>
        /// <param name="Current">The current.</param>
        /// <returns>
        /// 	<c>true</c> if [is null or empty] [the specified current]; otherwise, <c>false</c>.
        /// </returns>
        [ReganSchroder(26, 5, 2010, 1, 10, 2009)]
        public static bool IsNullOrEmpty(TradingCenterProfileCommon Current)
        {
            return (Current.IsNull() || Current.Equals(Empty) || (Current.MemberId == MemberManagement.DefaultValues.IdNullValue) || Current.UserName.IsNullOrEmpty());
        }
    }
}